package com.yanqu.road.server.cmd.activity.tongbing;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.TongBingProto;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.tongbing.CrossTongBingMgr;
import com.yanqu.road.server.manager.activity.tongbing.activity.CrossTongBingActivity;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C2_CROSS_TONG_BING_NOTIFY_UNION_MEMBER_CHANGE_REQ, desc = "")
public class CrossTongBingNotifyUnionMemberChangeReqCmd extends CrossUnionCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        TongBingProto.CrossTongBingNotifyUnionMemberChangeReqMsg reqMsg = TongBingProto.CrossTongBingNotifyUnionMemberChangeReqMsg.parseFrom(packet.getBytes());
        CrossTongBingActivity activity = CrossTongBingMgr.getActivity(reqMsg.getActivityId(), groupId);
        activity.notifyUnionMemberChangeByCmd(reqMsg.getUnionUid());
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
    }

    @Override
    public void sendData() {
    }

}
